<template>
  <van-config-provider :theme-vars="themeVars">
    <div class="sdy-header"></div>
    <SdyContainer></SdyContainer>
    <!-- 根据 路由元信息 设置是否显示底部导航 -->
    <SdyFooter v-if="!$route.meta.hidFooter"></SdyFooter>
  </van-config-provider>
</template>

<script setup lang="ts">

import { themeVars } from '@/config/theme'

// 导入指定组件
import SdyHeader from '@/views/SdyHeader/index.vue'
import SdyFooter from '@/views/SdyFooter/index.vue'
import SdyContainer from '@/views/SdyContainer/index.vue'

// 路由相关信息
// 获取
import { useRoute } from 'vue-router'
import type { RouteLocationNormalizedLoaded } from 'vue-router'
// 获取 路由元信息 
const $route: RouteLocationNormalizedLoaded = useRoute()

</script>

<style scoped lang="scss"></style>
